package main

import (
	"fmt"

	"github.com/xwb1989/sqlparser"
)

func main() {
	sql := "SELECT * FROM users WHERE a = 'abc'"
	stmt, err := sqlparser.Parse(sql)
	if err != nil {
		panic(err)
	}

	// Otherwise do something with stmt
	switch stmt := stmt.(type) {
	case *sqlparser.Select:
		_ = stmt
	case *sqlparser.Insert:
	}
	fmt.Printf("%+v", stmt)
}
